//
//  RunnesCell.m
//  LOL_JewelBox
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RunnesCell.h"

@implementation RunnesCell

- (void)dealloc
{
    
    [_smallView release];
    [_runesNameLabel release];
    [_runesImag release];
    [super dealloc];
    
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.smallView = [[UIView alloc] init];
        [self.contentView addSubview:self.smallView];
        [_smallView release];
        
        self.runesNameLabel = [[UILabel alloc] init];
        [self.smallView addSubview:self.runesNameLabel];
        [_runesNameLabel release];
        self.runesNameLabel.font = [UIFont systemFontOfSize:16];
        
        self.runesImag = [[UIImageView alloc] init];
        [self.smallView addSubview:self.runesImag];
        [_runesImag release];
        
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.smallView.frame = CGRectMake(0, 0, CONTENTWIDTH, 64);
    
    self.runesNameLabel.frame = CGRectMake(70, 0, CONTENTWIDTH / 2, CONTENTHEIGHT);
    
    self.runesImag.frame = CGRectMake(0, 0, 64, 64);
    
}



@end
